import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/Home'
import Regist from '@/pages/Regist'
import Login from '@/pages/Login'
import Me from '@/pages/Me'
import Booklist from '@/pages/Booklist'
import Search from '@/pages/Search'
import NovelInfo from '@/pages/NovelInfo'
import Catalog from '@/pages/Catalog'
import Mycollections from '@/pages/Mycollections'
import Boutique from '@/pages/Boutique'
import Details from '@/pages/Details'
import Free from '@/pages/Free'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: Home 
    },
    {
      path: '/regist',
      component: Regist
    },
    {
      path: '/login',
      component: Login
    },
    {
      path: '/me',
      component: Me
    },
    {
      path: '/booklist',
      component: Booklist
    },
    {
      path: '/search',
      component: Search
    },
    {
      path: '/novel/:id',
      component: NovelInfo
    },
    {
      path: '/catalog/:id',
      component: Catalog
    },
    {
      path: '/bcview/:name',
      component: Mycollections
    },
    {
      path: '/boutique',
      component: Boutique
    },
    {
      path: '/free',
      component: Free
    },
    {
      path: '/details/:id',
      component: Details
    },
  ]
})
